]> dgit.raspbian.org Git - gnome-shell.git/commit
polkit: Only unregister registered handles
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 22 Mar 2018 14:11:38 +0000 (11:11 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 6 Nov 2018 15:05:29 +0000 (13:05 -0200)
commit127ba318fda5c79998c2df590cd651dac416dc42
tree9634e308b3b2ba9ab437b685ff32a428d7e05696
parent72fa44d0fd273ee868ef092781214f83be55ead2
polkit: Only unregister registered handles

If the initialization fails for some reason, for example by
running 'gnome-shell --replace', we should not crash because
of an attempt of unregistering an unregistered agent handle.

Fix that by checking if the handle is not NULL before calling
the unregistering routines.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/66
src/shell-polkit-authentication-agent.c